## window下无make，如果需要安装，比较繁琐。建议使用Linux 或者 macos
## common make...


welcome: # welcome
	@echo "main project..."

flutter-clean: #make flutter clean
	@flutter clean

flutter-build: #make flutter pub get
	@flutter pub get

flutter-clean-build:flutter-clean # 清除flutter 构建文件并且构建新内容
	make flutter-build

flutter-tracker-plugin-build: # 仅针对plugin flutter_tracker 构建
	cd ./plugins/flutter_track/android/ && make cleanbuild

flutter-tracker-plugin-build-release: # 仅针对plugin flutter_tracker 构建
	cd ./plugins/flutter_track/android/ && make cleanbuild

apk-debug:flutter-clean-build flutter-tracker-plugin-build # 构建apk包，debug版本
	flutter build apk --debug --obfuscate --split-debug-info=./mappingout

apk-release-so-debug:flutter-clean-build flutter-tracker-plugin-build # 构建flutter release， so库debug
	flutter build apk --release --obfuscate --split-debug-info=./mappingout

apk-release:flutter-clean-build flutter-tracker-plugin-build-release # 构建apk包，全部 release版本
	flutter build apk --release --obfuscate --split-debug-info=./mappingout

app:flutter-clean-build flutter-tracker-plugin-build #构建所有的内容, 默认debug环境
	flutter run
